Re: [NTG-context] Linespacing in TOC

2013-11-23 Thread Jan Tosovsky
\chapter{}. % line without descenders \chapter{}. % line with descenders \chapter{}. % the result is an inconsistent baseline \stoptext Is there any remedy for this? Can I fix the baseline distance somehow? \definegridsnapping[crap] [fit,0.2] \setuplayout

Re: [NTG-context] Linespacing in TOC

2013-11-23 Thread Hans Hagen
{}. % line without descenders \chapter{}. % line with descenders \chapter{}. % the result is an inconsistent baseline \stoptext Is there any remedy for this? Can I fix the baseline distance somehow? \definegridsnapping[crap] [fit,0.2] \setuplayout[grid=crap] This helps

Re: [NTG-context] Linespacing in TOC

2013-11-23 Thread Jan Tosovsky
? \definegridsnapping[crap] [fit,0.2] \setuplayout[grid=crap] This helps! But... it breaks something else :-( I've finally found an acceptable solution. During my tests I found a crucial difference between: \setupinterlinespace[line=2.0ex] and \setupinterlinespace[0.25

Re: [NTG-context] Linespacing in TOC

2013-11-23 Thread Hans Hagen
? \definegridsnapping[crap] [fit,0.2] \setuplayout[grid=crap] This helps! But... it breaks something else :-( I've finally found an acceptable solution. During my tests I found a crucial difference between: \setupinterlinespace[line=2.0ex] and \setupinterlinespace[0.25] The latter sets

Re: [NTG-context] Linespacing in TOC

2013-11-22 Thread Hans Hagen
is an inconsistent baseline distance \stoptext Is there any remedy for this? Can I fix the baseline distance somehow? I have such cases in my TOC :-( (but not so extreme as here) \definegridsnapping[crap] [fit,0.2] \setuplayout[grid=crap] but if you really need that kind of tweaks you might consider

Re: [NTG-context] Linespacing in TOC

2013-11-22 Thread Jan Tosovsky
? \definegridsnapping[crap] [fit,0.2] \setuplayout[grid=crap] This helps! But... it breaks something else :-( I am confused a bit. What exactly the linespacing is doing? It can set the baseline distance (line=...), but it is not handled correctly? Is that snapping a workaround for this deficiency

Re: [NTG-context] [beta] grid head

2011-07-14 Thread Hans Hagen
and different mechanism \setuplayout[grid=yes] \showgrid % tolerant] \showgrid \setuppapersize[S6][S6] \starttext \setuphead[chapter][after=] \definegridsnapping[MyOne] [global,strut] \definegridsnapping[MyTwo] [local,strut] \definegridsnapping[MyThree][global,strut,top:3] \definegridsnapping

Re: [NTG-context] [beta] grid head

2011-07-14 Thread Christian
\definegridsnapping[MyOne] [global,strut] \definegridsnapping[MyTwo] [local,strut] \definegridsnapping[MyThree][global,strut,top:3] \definegridsnapping[MyThree][local,strut,top:3] Should'nt the last one be MyFour

Re: [NTG-context] [beta] grid head

2011-07-14 Thread Philipp Gesang
month :(. Just want to know whether I’ll miss something that important during my time away.) Best regards, Philipp \setuplayout[grid=yes] \showgrid % tolerant] \showgrid \setuppapersize[S6][S6] \starttext \setuphead[chapter][after=] \definegridsnapping[MyOne] [global,strut

[NTG-context] gridsnapping question

2011-02-11 Thread Andreas Harder
% {\setuphead[chapter][grid={#1}] \startchapter[title={Test: #1}] test \par test \par test \stopchapter \startchapter[title={Test: #1\\test\\test}] test \par test \par test \stopchapter} \definegridsnapping[whatever][strut,offset:-2pt] \definegridsnapping[chapter] [mindepth

Re: [NTG-context] grid=verytolerant causes overlapping

2011-02-11 Thread Wolfgang Schuster
is defined as \definegridsnapping[yes][maxheight,maxdepth,strut] and you enable with with “grid=yes” a where context tests if “yes” is a predefined lists but “grid={maxheight,maxdepth,strut}” is also valid and in this case context defined a dummy list which is passed to lua. The same happens

Re: [NTG-context] grid=verytolerant causes overlapping

2011-02-11 Thread Andreas Harder
the value is checked but no with gridsnapping. The “yes” value is defined as \definegridsnapping[yes][maxheight,maxdepth,strut] and you enable with with “grid=yes” a where context tests if “yes” is a predefined lists but “grid={maxheight,maxdepth,strut}” is also valid and in this case context

Re: [NTG-context] caught in the grid

2010-08-12 Thread Steffen Wolfrum
!! Have a look, please: I have no time now. I will document the grid snapper once I've finished the (still somewhat experimental) mechanism. OK. ... Just to avoid basic mistakes: What is right syntax (direct/indirect)? The results differ (see below) ... Steffen \definegridsnapping

Re: [NTG-context] caught in the grid

2010-08-12 Thread Piotr Kopszak
the (still somewhat experimental) mechanism. OK. ... Just to avoid basic mistakes: What is right syntax (direct/indirect)? The results differ (see below) ... Steffen \definegridsnapping[MyGrid]    [no] %\setuplayout[grid=no] % - alternative a \setuplayout[grid=MyGrid

Re: [NTG-context] caught in the grid

2010-08-12 Thread Steffen Wolfrum
This can only be used in single, controlled situations. Look what happens when the section is to be placed at top of page: \definegridsnapping[MyGrid] [off] \showframe \starttext \setuplayout[grid=MyGrid] \switchtobodyfont[42pt] \setupinterlinespace[line=30pt] Big text\crlf written

[NTG-context] caught in the grid

2010-08-11 Thread Steffen Wolfrum
Hi, as there is no setup for paragraphs (see thread before), I really don' know how to come out of this trap: I need a tight interlinespace for the normal body text, but no lunatic headings!! Have a look, please: \definegridsnapping[MyGrid] [off]% broad/both/bold/local fit for the text

Re: [NTG-context] hack needed (MkIV)

2010-08-08 Thread Hans Hagen
This I know, only I don't understand the syntax ;o) Is this 0.8 the threshold you mentioned ... \definegridsnapping[\v!strict] [\v!maxdepth:0.8,\v!maxheight:0.8,\v!strut] or 0.8 in here ... \definegridsnapping[\v!broad][\v!maxheight,\v!maxdepth,\v!strut,0.8] Or is the second kind of abbreviation

Re: [NTG-context] hack needed (MkIV)

2010-08-06 Thread Hans Hagen
: \definegridsnapping \switchtobodyfont[42pt] \setupinterlinespace[line=30pt] Big text\par written in\par three row \setuplayout[grid=strict] \setupinterlinespace[line=30pt] Big text\par written in\par three row \stoptext with 'yes' the line gets snapped to fit an extra line when too

Re: [NTG-context] hack needed (MkIV)

2010-08-06 Thread Steffen Wolfrum
\enabletrackers[nodes.vsnapping] \starttext % see spac-ver.mkiv: \definegridsnapping \switchtobodyfont[42pt] \setupinterlinespace[line=30pt] Big text\par written in\par three row \setuplayout[grid=strict] \setupinterlinespace[line=30pt] Big text\par written in\par three row

Re: [NTG-context] hack needed (MkIV)

2010-08-06 Thread Hans Hagen
We're not downward compatible with \MKII ! \definegridsnapping[\v!normal] [\v!maxheight,\v!maxdepth,\v!strut] \definegridsnapping[\v!standard] [\v!maxheight,\v!maxdepth,\v!strut] \definegridsnapping[\v!yes] [\v!maxheight,\v!maxdepth,\v!strut] \definegridsnapping[\v!strict] [\v!maxdepth:0.8

Re: [NTG-context] hack needed (MkIV)

2010-08-06 Thread Steffen Wolfrum
;o) Is this 0.8 the threshold you mentioned ... \definegridsnapping[\v!strict] [\v!maxdepth:0.8,\v!maxheight:0.8,\v!strut] or 0.8 in here ... \definegridsnapping[\v!broad][\v!maxheight,\v!maxdepth,\v!strut,0.8] Or is the second kind of abbreviation for the first? And even more

Re: [NTG-context] 10+ reasons why I still use MKII

2010-05-14 Thread Henning Hraban Ramm
% maxheightround height up % localuse local interline space % shift:-3tp vertical shift within box \definegridsnapping[normal] [maxheight,maxdepth,strut] \definegridsnapping[standard] [maxheight,maxdepth,strut] \definegridsnapping[yes] [maxheight,maxdepth,strut

Re: [NTG-context] 10+ reasons why I still use MKII

2010-05-13 Thread Hans Hagen
local interline space % shift:-3tp vertical shift within box \definegridsnapping[normal] [maxheight,maxdepth,strut] \definegridsnapping[standard] [maxheight,maxdepth,strut] \definegridsnapping[yes] [maxheight,maxdepth,strut] \definegridsnapping[strict] [\v!maxdepth:0.8,maxheight:0.8

Re: [NTG-context] the grid (MkIV)

2010-04-27 Thread Hans Hagen
} \page \chapter{one\\line\\line} \stoptext how about \setuplayout[grid=yes] \showgrid \definegridsnapping[chapter][mindepth,maxheight,local] \setuphead[chapter][grid=chapter,alternative=top] \starttext \chapter{one} \input tufte \chapter{one\\two}\input tufte

Re: [NTG-context] how to set \lineskiplimit-\maxdimen

2010-03-11 Thread Peter Rolf
point. oh, and thanks to Wolfgang for his much nicer code (assimilated). Peter \usetypescript[postscript] \definetypeface[postscript][rm][serif][times][default] \setupbodyfont[postscript,20pt] %\definegridsnapping[verytolerant] [maxdepth:1.3,maxheight:1.3,strut] %\setuplayout[grid=verytolerant

Re: [NTG-context] MkIV grid ?

2010-02-17 Thread Hans Hagen
depth up % minheightround height down % maxheightround height up %D We're not downward compatible with \MKII ! \definegridsnapping[\v!normal] [\v!maxheight,\v!maxdepth,\v!strut] \definegridsnapping[\v!standard] [\v!maxheight,\v!maxdepth,\v!strut] \definegridsnapping[\v!yes] [\v

Re: [NTG-context] grid snapping (mkiv)

2009-11-19 Thread Hans Hagen
) we have now grid definitions, with predefined: \definegridsnapping[normal] [maxheight,maxdepth,strut] \definegridsnapping[standard] [maxheight,maxdepth,strut] \definegridsnapping[yes] [maxheight,maxdepth,strut] \definegridsnapping[strict] [maxdepth:0.8,maxheight:0.8,strut